﻿#include "CmdLineChartWindowChangeGuideLineProperty.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdLineChartWindowChangeGuideLineProperty::CmdLineChartWindowChangeGuideLineProperty()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdLineChartWindowChangeGuideLineProperty::~CmdLineChartWindowChangeGuideLineProperty()
    {
    }

    bool CmdLineChartWindowChangeGuideLineProperty::execute()
    {
        bool _success = false;
        emit IBaseSignalInstance->signal_lineChartWindowChangeGuideLineProperty(m_guideLineID, m_value, m_guideLineStyle, m_guideLineThickness, m_guideLineColor);
        return true;
    }

    void CmdLineChartWindowChangeGuideLineProperty::undo()
    {
        // TODO: undo
    }

    void CmdLineChartWindowChangeGuideLineProperty::redo()
    {
        execute();
    }

}
